package com.liruo.treasureattic.common.model.dto.url;

import com.liruo.treasureattic.common.model.constant.TreasureAtticConstant;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author:liruo
 * @Date:2022-10-31-20:36:45
 * @Desc  必须fid，url，name
 */
@Data
public class UrlAddReq implements Serializable {
    @Serial
    private static final long serialVersionUID = TreasureAtticConstant.TREASURE_ATTIC_VERSION;
    /**
     * folder_id  fid 不能是 1,因为id=1是保留的，不能有任何folder的id=1
     */
    private Long fid;
    /**
     * max=128
     */
    private String name;
    /**
     * max=2048
     */
    private String url;
    /**
     * max=2048
     */
    private String ico;

    /**
     * open默认true
     */
    private Boolean open;
}
